<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="model.SessionInfo"%>
<%
	String contextPath = request.getContextPath();
	SessionInfo sessionInfo = (SessionInfo) session.getAttribute("sessionInfo");
%>
<script type="text/javascript" charset="utf-8">
$.extend($.fn.validatebox.defaults.rules, {
	eqPwd : {/* 验证两次密码是否一致功能 */
		validator : function(value, param) {
			return value == $(param[0]).val();
		},
		message : '密码不一致！'
	},
	minLength: { // 判断最小长度
        validator: function (value, param) {
            return value.length >= param[0];
       },
        message: '最少输入 {0} 个字符'
   }
});
</script>
<div style="padding: 15px;overflow: hidden;">
			<form id="passwordForm" method="post">
				<input name="id"  type="hidden" value="<%=sessionInfo.getUser().getId()%>"/>
				<!-- <div style="margin:10px;"><label style="font-weight:bolder;">原始密码</label>
				<input name="oldPwd" type="password" placeholder="请再次输入新密码" class="easyui-validatebox" data-options="required:true">
				</div> -->
				<div style="margin:10px;"><label style="font-weight:bolder;">新密码</label>&nbsp;&nbsp;&nbsp;
				<input name="pwd" type="password" placeholder="请输入新密码" class="easyui-validatebox" data-options="required:true,validType:'minLength[6]'">
				</div>		
				<div style="margin:10px;"><label style="font-weight:bolder;">重复密码</label>
				<input name="rePwd" type="password" placeholder="请再次输入新密码" class="easyui-validatebox" data-options="required:true,validType:'eqPwd[\'#passwordForm input[name=pwd]\']'">
				</div>
			</form>
	</div>